module.exports = {
    title: "淡水海岸",
    description: "记录各类资源、教程等等",
    base: '/knowledge-view/',
    markdown: {
        lineNumbers: true,
    },
    plugins: [['vuepress-plugin-code-copy', true]],
    themeConfig: {
        nav: [
            { text: "基础指南", link: "/vue2/" },
            { text: "联系作者", link: "/guide/concact" },
            { text: "github", link: "https://github.com/JAY-825/knowledge-gihub" }
            // { text: "gitee", link: "https://gitee.com/Rewind_ljp/knowledge" }
        ],
        sidebar: [{
                title: 'vue2系列', // 必要的
                collapsable: true, // 可选的, 默认值是 true,
                sidebarDepth: 1, // 可选的, 默认值是 1
                children: [
                    ['vue2/', "vue2特点介绍"],
                    ['vue2/spa', "对单页面应用(spa)的理解"],
                    ['vue2/ifandshow', "v-if和v-show的区别"],
                    ['vue2/life', "vue2生命周期"],
                    ['vue2/data', "vue中的data属性"],
                    ['vue2/cor', "vue组件通信方式"]
                ]
            },
            {
                title: 'JavaScript系列',
                sidebarDepth: 1,
                children: [
                    ['javascript/', "javascript特性"],
                    ['javascript/datatype', "javascript数据类型"],
                    ['javascript/prototype', "原型和原型链"],
                    ['javascript/class', "class类"],
                    ['javascript/regexp', "正则表达式"],
                    ['javascript/throw', "throw语句"],
                    ['javascript/typeof', "typeof与instanceof"],
                    ['javascript/operator', "运算符"],
                    ['javascript/bigint', "BigInt"],
                    ['javascript/promise', "Promise"],
                    ['javascript/number', "Number"],
                    ['javascript/arraybuffer', "ArrayBuffer"],
                    ['javascript/dataview', "DataView"],
                    ['javascript/symbol', "Symbol"],
                    ['javascript/recycle', "垃圾回收机制"]
                ]
            },
            {
                title: 'TypeScript系列',
                sidebarDepth: 1,
                children: [
                    ['typescript/', "TypeScript介绍"],
                    ['typescript/type', "类型"],
                    ['typescript/interface', "接口"],
                    ['typescript/class', "类"],
                    ['typescript/enum', "枚举"],
                    ['typescript/function', "函数"],
                    ['typescript/declare', "declare"]
                ]
            },
            {
                title: 'NodeJs系列',
                sidebarDepth: 1,
                children: [
                    ['nodejs/', "Node.js介绍"],
                    ['nodejs/fs', "Node.js的文件模块"],
                    ['nodejs/path', "Node.js的path模块"],
                    ['nodejs/npm', "npm包管理工具"],
                    ['nodejs/http', "Node.js的http模块"],
                    ['nodejs/module', "Node.js模块"]
                ]
            },
            {
                title: 'ES6系列',
                sidebarDepth: 1,
                children: [
                    ['es6/', "ES6介绍"],
                    ['es6/declaer', "var/let/const"],
                    ['es6/array', "数组新增方法"],
                    ['es6/object', "对象新增方法"],
                    ['es6/function', "函数新增方法"],
                    ['es6/setandmap', "set/map数据结构"],
                    ['es6/deconstruction', "解构赋值"]
                ]
            },
            {
                title: '小程序系列',
                sidebarDepth: 1,
                children: [
                    ['mini/', "小程序介绍"]
                ]
            },
            {
                title: '开发笔记',
                sidebarDepth: 1,
                children: [
                    ['notes/', "开发笔记"],
                    ['notes/uni_permission', "uni-app权限判断"],
                    ['notes/base64', "base64编码解码类"],
                    ['notes/MD5', "MD5加密类"],
                    ['notes/Calculation', "js计算类"],
                    ['notes/uni_scan', "uni-app扫码跳转"],
                    ['notes/package', "package.json文档"],
                    ['notes/gitignore', ".gitignore文档"],
                    ['notes/gitword', "git常用指令文档"]
                ]
            },
            {
                title: '开发插件推荐系列',
                sidebarDepth: 2,
                children: [
                    ['codevs/', "vscode插件推荐"]
                ]
            },
        ],
        // 最后更新时间
        lastUpdated: 'Last Updated'
    },
};
